// 本文件由FirstUI授权予关赛川（手机号：  1 5 6  0 0515 2 0 5，身份证尾号：2   2 65 19）专用，请尊重知识产权，勿私下传播，违者追究法律责任。

import App from './App'
import fui from './common/fui-app'
import http from './common/fui-request'
import store from './store'

import Vue from 'vue'

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.fui = fui
Vue.prototype.$http = http
import fTabs from "@/components/component/fTabs.vue"
Vue.component('f-tabs', fTabs)
// 获取api目录所有js文件
const files = require.context('@/api', false, /\.js$/)

let httpApi = {}; // 存放接口


files.keys().forEach(key => {
    const api = files(key).default
    for (let item in api) {
        httpApi[item] = api[item]
    }
})
Vue.prototype.$httpApi = httpApi;

App.mpType = 'app'

const app = new Vue({
    store,
    ...App
})



app.$mount()
